package cn.edu.cuit.elena.transaction.controller;

import cn.edu.cuit.elena.common.Result;


/**
 * Progress is a task, which can know current progression.
 * 
 * */
public interface Progressable
{
    /**
     * Get progress of current task.
     * @return
     * 0 Stand for not begin, 100 stand for completed.
     * 
     * */
    int getProgression();
    
    /**
     * Get current result of task.
     * */
    Result getResult();
}
